﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="MyList.aspx.cs" Inherits="lcs.Web.Admin.monthsked.MyList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    <script type="text/javascript">
    function showQRC(iid) {

        window.open('../../PrintQCR.aspx?id=' + iid + "&type=mouthsked", 'newwindow', 'height=300, width=300, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')
    }
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td style="width: 80px" align="right" class="tdbg"></td>
            <td class="tdbg" style="text-align: left;">
                <b>项目名：</b>
                <asp:TextBox ID="txtKeyword2" runat="server" Width="84px"></asp:TextBox>
                <b>供应商：</b>
                <asp:TextBox ID="txtKeyword" runat="server" Width="91px"></asp:TextBox>
                <b>中标批次：</b>
                <asp:TextBox ID="txtwinbid" runat="server" Width="91px"></asp:TextBox>
                <b>完成状态：</b><asp:DropDownList ID="ddlstate" runat="server">
                    <asp:ListItem Selected="True">未处理</asp:ListItem>
                    <asp:ListItem >不合格</asp:ListItem>
                    <asp:ListItem>合格</asp:ListItem>
                    <asp:ListItem>所有</asp:ListItem>
                </asp:DropDownList>
                &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>

                &nbsp;</td>
            <td class="tdbg"></td>
        </tr>
    </table>
    <!--Search end-->
    <br />
    <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv"
        GridLines="None" OnPageIndexChanging="gridView_PageIndexChanging"
        DataKeyNames="mid" OnRowDataBound="gridView_RowDataBound"
        AutoGenerateColumns="False" RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
        <Columns>
            <asp:TemplateField ControlStyle-Width="30" HeaderText="选择" Visible="True">
                <ItemTemplate>
                    <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                </ItemTemplate>

                <ControlStyle Width="30px"></ControlStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>                               
                                <a href="javascript:showQRC(<%# Eval("msBH") %>)" style=" color:Blue">生成二维码 </a>
                                
                            </ItemTemplate>
                        </asp:TemplateField>
            <asp:BoundField DataField="spotunit" HeaderText="抽检实施单位" SortExpression="spotunit" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="projectName" HeaderText="工程名称" SortExpression="monthsupplyid" ItemStyle-HorizontalAlign="Center">

                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="sname" HeaderText="供应商"></asp:BoundField>
            <asp:BoundField DataField="material" HeaderText="产品名称"></asp:BoundField>
            <asp:BoundField DataField="mbm" HeaderText="型号规格"></asp:BoundField>
            <asp:BoundField DataField="winBid" HeaderText="中标批次"></asp:BoundField>
            <asp:BoundField DataField="num" HeaderText="中标数量"></asp:BoundField>
            <asp:BoundField DataField="unit" HeaderText="单位"></asp:BoundField>
            <asp:BoundField DataField="spottype" HeaderText="抽检方式" SortExpression="spottype" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="spotnum" HeaderText="抽检样品数量" SortExpression="spotnum" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="spotcontent" HeaderText="抽检主要内容" SortExpression="spotcontent" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="usework" HeaderText="项目单位" />
            <asp:BoundField DataField="spotopinion" HeaderText="抽检意见" SortExpression="spotopinion" HtmlEncode="false" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="plandate" HeaderText="计划日期" SortExpression="plandate" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="user_name" HeaderText="质检员" SortExpression="uid" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="qresult" HeaderText="结果" SortExpression="qresult" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="question" HeaderText="问题分析" SortExpression="question" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="mstatuscn" HeaderText="状态"></asp:BoundField>
            <asp:HyperLinkField HeaderText="图片" ControlStyle-Width="50" DataNavigateUrlFields="mid" DataNavigateUrlFormatString="showpic.aspx?id={0}" 
                Text="图片" Target= "_blank">
                <ControlStyle Width="50px"></ControlStyle>
            </asp:HyperLinkField>
            <asp:HyperLinkField HeaderText="处理" ControlStyle-Width="50" DataNavigateUrlFields="mid" DataNavigateUrlFormatString="ModifyCJ.aspx?id={0}"
                Text="处理">
                <ControlStyle Width="50px"></ControlStyle>
            </asp:HyperLinkField>
        </Columns>

        <RowStyle HorizontalAlign="Center"></RowStyle>
    </asp:GridView>
    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td style="width: 1px;"></td>
            <td align="left">
                <b>抽检：</b><asp:DropDownList ID="ddltype" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddltype_SelectedIndexChanged">
                       <asp:ListItem Selected="True">成功抽检</asp:ListItem>
            <asp:ListItem >抽检失败</asp:ListItem> 
                </asp:DropDownList><asp:TextBox ID="txtsb" runat="server" Width="91px" value="失败原因" visible="false"></asp:TextBox><asp:Button ID="btnCJ" runat="server" OnClick="btnCJ_Click" Text="抽检" OnClientClick="return chtest()" />
                <asp:Button ID="btnout" runat="server" OnClick="btnOut_Click" Text="导出" /></td>
            
        </tr>
    </table>
</asp:Content>
